package com.gitee.feizns.zxw.web.controller.api;

import com.gitee.feizns.web.domain.page.PageAo;
import com.gitee.feizns.web.domain.page.PageVoRet;
import com.gitee.feizns.web.domain.result.Ret;
import com.gitee.feizns.zxw.domain.portal.ao.theme.tourism.travel.line.evaluation.ListAo;
import com.gitee.feizns.zxw.domain.portal.vo.theme.tourism.travel.line.evaluation.ListVo;
import com.gitee.feizns.zxw.service.api.ApiThemeTourismTravelLineEvaluationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 详情页 => 旅游主题 => 线路 => 评价
 * @author feizns
 * @since 2019/9/10
 */
@RestController
@RequestMapping("/api/v1/portal/theme-tourism/travel-line/evaluation")
public class ApiThemeTourismTravelLineEvaluationController {

    @Autowired
    private ApiThemeTourismTravelLineEvaluationService apiThemeTourismTravelLineEvaluationService;

    /**
     * 线路评价
     * @param page
     * @param ao
     * @return com.gitee.feizns.zxw.domain.portal.vo.theme.tourism.travel.line.evaluation.ListVo
     */
    @GetMapping
    public Ret<PageVoRet<ListVo>> list(PageAo page, @Validated ListAo ao) {
        return Ret.ok(apiThemeTourismTravelLineEvaluationService.list(page, ao));
    }

}
